#!/bin/bash
# Replace these three settings.
PROJDIR="/tmp"
PIDFILE="$PROJDIR/django.pid"
SOCKET="$PROJDIR/django.sock"
#cd $PROJDIR
if [ -f $PIDFILE ]; then
	kill `cat -- $PIDFILE`
	rm -f -- $PIDFILE
fi
#python ./manage.py runfcgi socket=$SOCKET pidfile=$PIDFILE
echo "socket=$SOCKET"
echo "pidfile=$PIDFILE"
exec python ./manage.py runfcgi socket=$SOCKET pidfile=$PIDFILE
